package comparable_test;

import java.util.Comparator;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张宇田
 * Date: 2024-10-11
 * Time: 19:01
 */
public class ComName
        implements Comparator <Student> {
    public int compare(Student o1, Student o2){
        return o1.name.compareTo(o2.name);
    }
}
